package com.codebo.homiematchbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codebo.homiematchbackend.model.dto.blog.*;
import com.codebo.homiematchbackend.model.entity.blog.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematchbackend.model.vo.BlogVO;

import jakarta.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 25912
* @description 针对表【blog(博客)】的数据库操作Service
* @createDate 2025-09-21 13:57:25
*/
public interface BlogService extends IService<Blog> {

    long addBlog(BlogAddRequest blogAddREquest);

    List<BlogVO> listBlogByRecommend(HttpServletRequest request,BlogQueryRequest blogQueryRequest);

    boolean likeBlog(LikeBlogRequest likeBlogRequest);

    boolean collectBlog(CollectBlogRequest collectBlogRequest);

    boolean commentBlog(CommentBlogRequest commentBlogRequest);

    List<BlogVO> getRecentBlog(Long id, HttpServletRequest httpServletRequest);


    //------------------------

    QueryWrapper<Blog> getQueryWrapper(BlogQueryRequest blogQueryRequest);

    BlogVO getBlogVO(Blog blog,HttpServletRequest httpServletRequest);

    List<BlogVO> getBlogVOList(List<Blog> blogs,HttpServletRequest httpServletRequest);



}
